<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
* {
	margin: 0px auto;
	padding: 0px;
}

#nav {
	width: 590px;
	height: 470px;
	overflow: hidden;
}

#photo {
	width: 2950px;
	animation: switch 25s ease-out infinite;
}

#num {
	position: relative;
	font-size: 14px;
	font-family: "微软雅黑";
	font-weight: 900;
	bottom: 35px;
	right: -5px;
	text-align: center;
}
#num ul{
	color: white;
list-style-type: none;

}
#num li{
	padding-top: 3px;
	padding-bottom: 3px;
	padding-left: 8px;
	padding-right: 8px;
	border-radius:50% ;
	margin-right:8px ;
	display: inline-block;
	background: dimgray;
}
#num a{
	text-decoration: none;
	color: white;
}
#num ul  a:hover li{
	background: orangered;
}
#photo img {
	float: left;
	width: 590px;
	height: 470px;
}

@keyframes switch {
	0%,
	15% {
		margin-left: 0px;
	}
	20%,
	35% {
		margin-left: -590px;
	}
	40%,
	55% {
		margin-left: -1180px;
	}
	60%,
	75% {
		margin-left: -1770px;
	}
	80%,
	95% {
		margin-left: -2360px;
	}
	100% {
		margin-left: 0;
	}
}

#div2 {
	font-size: 18px;
	font-family: "微软雅黑";
	position: relative;
	bottom: 255px;
	left: 0px;
}

.label1 {
	padding: 6px;
	margin-right: 533px;
	color: white;
	background: black;
	opacity: 0.4;
}

.label2 {
	padding: 6px;`在这里插入代码片`
	color: white;
	background: black;
	opacity: 0.4;
}

#div2 a {
	color: white;
	text-decoration: none;
}

#div2 a:hover label {
	background: black;
	opacity: 0.8;
}
</style>
</head>

<body>
		<div id="nav">
			<div id="photo">
				<img src="focus.jpg" />
				<img src="59a4f89b56b6f.jpg" />
				<img src="59e806ba64dec.jpg" />
				<img src="5b77d35eea3b2.jpg" />
				<img src="1538902653-JiXoPkKcpb.jpg" />
			</div>
			<div id="num">
				<ul>
					<a href="#">
						<li>1</li>
					</a>
					<a href="#">
						<li>2</li>
					</a>
					<a href="#">
						<li>3</li>
					</a>
					<a href="#">
						<li>4</li>
					</a>
					<a href="#">
						<li>5</li>
					</a>
				</ul>
			</div>
			<div id="div2">
				<a href="#"><label class="label1"><</label></a>
				<a href="#"><label class="label2">></label></a>
			</div>
		</div>
	</body>

</html>
